
import Image

# MAIN.PY
# BY RONALD M. KEMKER
# Contains the code used to process plenoptic camera light field data and render
# a full resolution rendered image and its corresponding depth map.
#
# Michigan Tech Research Institute (MTRI)
# Date: 20110510

#Name of 4-D Light Field Dataset (Change to match filename)
lfdataname = "sample.jpg"

#Dimensions of MLA (Change to match specifications)
mlwide = 96
mlhigh = 72
mldim = [mlhigh,mlwide]

#Dimensions of Plenoptic Camera
b = 4.67e-2#Distance between MLA and image sensor
a = 13e-2 #Distance to the focal length of the main lens and the MLA
reconmag = a/b #Reconstruction magnification

lfdata = Image.open(lfdataname)

dataheight = lfdata.size[1]
datawidth = lfdata.size[0]


